-- GENERATED SPELL FOR [Coldmine Explorer] --


function spell0_13096(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(15244,pUnit)
pUnit:RegisterEvent('Sorts_13096', 8302, 1)
end

function spell1_13096(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(14145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13096', 606, 1)
end

function spell2_13096(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(15242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13096', 3000, 1)
end

function spell3_13096(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_13096', 0, 1)
end

function Sorts_13096(pUnit, Event)
local choix_sorts_13096 = math.random(0, 3)
if choix_sorts_13096 == 0 then
pUnit:RegisterEvent('spell0_13096', 1, 1)
end
if choix_sorts_13096 == 1 then
pUnit:RegisterEvent('spell1_13096', 1, 1)
end
if choix_sorts_13096 == 2 then
pUnit:RegisterEvent('spell2_13096', 1, 1)
end
if choix_sorts_13096 == 3 then
pUnit:RegisterEvent('spell3_13096', 1, 1)
end
end

function mob13096_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13096', math.random(1500, 3000), 1)
end

function mob13096_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13096_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13096_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13096, 1, 'mob13096_Action')
RegisterUnitEvent(13096, 2, 'mob13096_Leave')
RegisterUnitEvent(13096, 3, 'mob13096_Kill')
RegisterUnitEvent(13096, 4, 'mob13096_Die')
